package com.qd.common.panda.domain.entity.carpark.calculate;

import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 计算折扣
 *
 * @author sjk
 * @create 2022-11-15 15:21
 * @since 1.0.0
 */
@Data
@Accessors(chain = true)
@ToString
public class CalculateDTO {
    /**
     * 原价
     */
    private BigDecimal price;
    /**
     * 优惠价
     */
    private BigDecimal calculatePrice;
    /**
     * 优惠金额
     */
    private BigDecimal discountAmount;

    /**
     * 折扣
     */
    private BigDecimal customerDiscount;

    public void freeData() {
        this.price = null;
        this.calculatePrice = null;
        this.discountAmount = null;
        this.customerDiscount = null;
    }
}